package com.isesol.ime.dal.mapper;

import com.isesol.arch.common.dal.*;
import com.isesol.ime.dal.model.*;
import com.isesol.ime.dal.model.dto.*;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.*;

import java.util.*;

/**
 * 参数
 *
 * @author peter zhang
 */
@Repository
public interface ParamMapper extends GenericMapper<ParamDO> {

	List<ParamDO> findByParamIdAndStatusAndParamVersion(@Param("paramId") String paramId,
	                                                    @Param("status") String status,
	                                                    @Param("paramVersion") String paramVersion);

	List<ParamDTO> find(@Param("paramId") String paramId,
	                    @Param("paramName") String paramName,
	                    @Param("name") String name,
	                    @Param("categoryId") String categoryId,
	                    @Param("paramVersion") String paramVersion);

	List<ParamDTO> findSelectableParams(@Param("paramVersion") String paramVersion,
	                                    @Param("paramId") String paramId,
	                                    @Param("categoryId") String categoryId);

	ParamDTO findById(@Param("id") long id);

}
